<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" charset="UTF-8" content="width=device-width, initial-scale=1.0">
    <title>弹窗</title>
    <script src="${ctx}/js/vue.min.js"></script>
    <script src="${ctx}/jquery/2.1.4/jquery.min.js"></script>
    <style>
        .body {
            margin: 0;
        }

        .image_box {
            padding: 20px 0;
            text-align: center;
        }
        .image_box img{
            width: 80%;
        }
    </style>
</head>
    <body class="body">
        <div class="image_box" id="app">
            <img :src="imgUrl">
        </div>

    </body>
</html>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            imgUrl:''
        },
        mounted:function(){
            <#--this.getImage('${str}')-->
            this.imgUrl = '${str}'
            <#--console.log('popup','${str}')-->
        },
        methods:{
            getImage(id){
                $.ajax({
                    url: '/sys/record/get',
                    data: {
                        id: id
                    },
                    type: 'post',
                    dataType: 'json',
                    success: function (res) {
                        console.log(res.data.result)
                    },
                    error: function () {
                        alert('网络异常1！');
                    }
                });
            }
        }
    })
</script>